package com.clw.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * Created by Administrator on 2017-12-30.
 */
@Data
public class ProductForm {
    private Integer id;

    @NotNull(message = "请输入完整信息")
    private Integer category;
    @NotEmpty(message = "请输入完整信息")
    private String catalog;
    @NotEmpty(message = "请输入完整信息")
    private String number;
    @NotEmpty(message = "请输入完整信息")
    private String name;
    @NotNull(message = "请输入完整信息")
    private Double price;
    @NotEmpty(message = "请输入完整信息")
    private String Producer;
    @NotNull(message = "请输入完整信息")
    private Integer count;
    @NotEmpty(message = "请输入完整信息")
    private String saveLocation;
}
